

$(function () {
    $.ajax({
        url: "../json/shopping.json", success: (result)=> {
            for (let i of result.data) {
                // console.log(i);

                $(".recommend_1").append(`
                <div class="grid-panel">
                    <img src="../json/${i.img}" alt="">
                    <div class="info-cont">
                        <div class="title">
                            <a href="">${i.name}</a>
                        </div>
                        <div class="price">
                            <span>¥ </span>
                            <span>${i.pride}</span>
                        </div>
                        <div class="operate">
                            <a class="add-cart git">加入购物车</a>
                        </div>
                    </div>
                   
                </div>
             `)
            }
        }
    });





    // $("").on("click",function(){
    //     console.log("123")
    // })

    // $("body").on("click",".add-cart",function(){
    // // console.log($(this).parent());
    // // $("div").children();
    // console.log($(".tupian"));
    // })

    

});
